package com.orange.delivery.presentation.page;

import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
import org.apache.wicket.markup.html.basic.Label;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.orange.delivery.presentation.common.HeaderFooterTemplatePage;

@AuthorizeInstantiation(value = { "ROLE_USER", "ROLE_ADMIN" })
public class HomePage extends HeaderFooterTemplatePage {

	private static final long serialVersionUID = 1L;
	private static final Logger LOG = LoggerFactory.getLogger(HomePage.class.getName());

	public HomePage() {
		super();
		LOG.debug("create home page");
		createHomePageTitle();
	}

	private void createHomePageTitle() {
		Label homePageTitle = new Label("homePageTitle", getString("home.page.title"));
		add(homePageTitle);
	}
}
